//
//  OtherInfoView.m
//  项目三
//
//  Created by rimi on 15/10/15.
//  Copyright (c) 2015年 rimi. All rights reserved.
//

#import "OtherInfoView.h"

@interface OtherInfoView ()

- (void)initializeUserInterface; /**< 初始化用户界面 */

@end

@implementation OtherInfoView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self initializeUserInterface];
    }
    return self;
}

- (void)initializeUserInterface {
    
    self.backgroundColor = COLOR(205, 205, 205, 1);
    UIImageView *image = [[UIImageView alloc] initWithFrame:DHFlexibleFrame(CGRectMake(0 ,20 ,701 ,904))];
    image.image = [UIImage imageNamed:@"其他资料"];
    [self addSubview:image];
    
    [self addSubview:self.beforeBtn];
    [self addSubview:self.finishBtn];
}
#pragma mark - getter
- (UIButton *)beforeBtn {
    
    if (!_beforeBtn) {
        _beforeBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_beforeBtn setFrame:DHFlexibleFrame(CGRectMake(200, 800, 112, 50))];
        [_beforeBtn setBackgroundImage:[UIImage imageNamed:@"上一步"] forState:UIControlStateNormal];
    }
    return _beforeBtn;
}
- (UIButton *)finishBtn {

    if (!_finishBtn) {
        _finishBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [_finishBtn setFrame:DHFlexibleFrame(CGRectMake(400, 800, 112, 50))];
        [_finishBtn setBackgroundImage:[UIImage imageNamed:@"完成"] forState:UIControlStateNormal];
    }
    return _finishBtn;
}
@end
